package cn.com.xy.sms.sdk.db.entity;

/* SDK-428 huangzhiqiang 20160614 start */
public class NumberInfo {
    public int id;// 自增ID
    public String num; // 号码
    public String result; // 号码识别结果
    public String version; // 版本号
    public long lastQueryTime = 0; // 最近一次数据查询时间

    public static final String NUM_KEY = "pubnum"; // 号码识别结果的号码值key
    public static final String NAME_KEY = "name"; // 号码识别结果的号码名称值key
    public static final String VERSION_KEY = "version"; // 号码识别结果的版本号值key
    public static final String LOGO_KEY = "logo"; // 号码识别结果的logo值key
    public static final String SOURCE_KEY = "src"; // 号码识别结果的来源值key
    public static final String NUM_TYPE_KEY =  "numtype"; // 号码类型，1:企业号码 2:私人号码（包括手机号、固话）
    public static final String AUTH_KEY =  "auth"; // 认证号码标识，值为1，非认证号码没有该key
    public static final String AREA_CODE_KEY = "areaCode"; // 固话区号值key
    public static final String USER_TAG_TYPE_KEY = "userTagType"; // 用户标记类型值key(1:系统预制类型 2:自定义类型)
    public static final String USER_TAG_KEY = "userTag"; // 用户标记值key
    public static final String USER_TAG_UPLOAD_STATUS_KEY = "u"; // 用户标记上传状态值key(0:未上传 1:已上传)
    
	/*SDK-639 likuangkuang 20161012 start*/
	public static final String TYPE_KEY = "type"; // 类别 2、3:标记号码   >=4:企业号码
    public static final String TAG_KEY = "tag"; // 号码标记
    public static final String AMOUNT_KEY = "amount"; // 标记数
	/*SDK-639 likuangkuang 20161012 end*/

    public static final String LOCAL_LOGO_KEY = "logo_exist"; // 本地logo是否存在key
    
    /*SDK-637 zhaojiangwei 20160929 start*/
    public static final String KEY_TAG= "tag";
    public static final String KEY_AMOUNT= "amount";
    /*SDK-637 zhaojiangwei 20160929 end*/
	
    public static final int UPLOAD_STATUS_NO_UPLOAD = 0; // 未上传
    public static final int UPLOAD_STATUS_UPLOADED = 1; // 已上传

    public static final String SERVER_URL_KEY = "serverUrl"; // 联盟提供的logo的服务器URL，临时字段，不入库
    public static final String LOGO_NAME_KEY = "logoName"; // 联盟提供的logo的logo名称，临时字段，不入库

    public NumberInfo() {
    }

    /**
     * 实例化NumberInfo
     * 
     * @param id 自增ID
     * @param num 号码
     * @param result 号码识别结果
     * @param version 版本号
     * @param lastQueryTime 最近一次数据查询时间
     */
    public NumberInfo(int id, String num, String result, String version, long lastQueryTime) {
        this.id = id;
        this.num = num;
        this.result = result;
        this.version = version;
        this.lastQueryTime = lastQueryTime;
    }
}
/* SDK-428 huangzhiqiang 20160614 end */
